<template>
  <div class="gl_contentBox gl_heightFull">
    <el-tabs v-model="activeName">
      <el-tab-pane label="线上收款" name="1">
        <onlineCollection :is-show="activeName === '1'" />
      </el-tab-pane>
      <el-tab-pane label="线下收款" name="2">
        <offlineCollection :is-show="activeName === '2'" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import onlineCollection from './onlineCollection';
import offlineCollection from './offlineCollection';
export default {
  components: {
    onlineCollection,
    offlineCollection
  },
  data() {
    return {
      activeName: '1'
    };
  }
};
</script>
